home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 40
/
Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso
/
Aminet
/
misc
/
emu
/
ATUtilities.lha
/
ATUtilities
/
ASM
/
XXX.ASM
< prev
Wrap
Assembly Source File
|
2000-09-26
|
2KB
|
125 lines
cmd equ 8192
arg1 equ cmd+00
arg2 equ cmd+02
arg3 equ cmd+04
Start:
mov ah,1
mov al,29
int 0b
mov janus_ofs,di
cmp di,-1
jne install
jmp near ende
install:
mov dx,offset str1
mov ah,9
int 21h
mov es,0d400
mov di,janus_ofs
mov es:w[di+arg1],100
mov es:w[di+arg2],0
call near call_and_wait
mov es,0d400
mov di,janus_ofs
mov si,offset boot_sek
mov cx,255
rep movsw
mov di,janus_ofs
mov es:w[di+arg1],1
mov es:w[di+arg2],1
mov es:w[di+arg3],0
call near call_and_wait
mov di,janus_ofs
mov es,0d400
mov al,0FBh
stosb
mov al,0FFh
stosb
mov cx,1535
xor ax,ax
rep stosw
mov di,janus_ofs
mov es,0d400
mov es:w[di+arg1],1
mov es:w[di+arg2],6
mov es:w[di+arg3],1
call near call_and_wait
mov di,janus_ofs
mov es,0d400
mov si,offset vol_name
mov cx,6
rep movsw
mov cx,1786
xor ax,ax
rep stosw
mov di,janus_ofs
mov es:w[di+arg1],1
mov es:w[di+arg2],7
mov es:w[di+arg3],7
call near call_and_wait
mov di,janus_ofs
mov es,0d400
mov es:w[di+arg1],3
call near call_and_wait
mov dx,offset fertig
mov ah,9
int 21h
ende:
ret
call_and_wait proc near
push ds
push es
mov ah,7
mov al,29
int 0b
mov ah,8
mov al,29
int 0b
pop es
pop ds
ret
call_and_wait endp
janus_ofs dw (?)
str1 db "ATUtilities Transfer Medium-Installation V1.0",13,10
db "-----------------------------------------------",13,10
db "Medium wird installiert. Bitte warten.",13,10,"$"
vol_name db "AMIGA-DISK0",8
fertig db "Medium konnte erfolgreich installiert werden.",13,10,10
db "Technische Informationen:",13,10
db " Kapazitt = 880 KBytes",13,10
db " Sektoren = 1760",13,10
db " Spuren = 80",13,10
db " Sektoren/Spur = 11",13,10
db " Medium-Bezeichnung = AMIGA-DISK0",13,10,10,"$"
boot_sek:
db 3 dup (0)
db "-TD- 1.0"
bpb:
dw 512
db 1
dw 1
db 1
dw 112
dw 1760
db 0FB
dw 6
dw 11
dw 2
dw 1
db 482 dup (0)